﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Web.Default" Theme="BaseTheme" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
   
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="container">
        <div class="page-header">
            <h1><asp:HyperLink ID="HeadLink" runat="server" NavigateUrl="~/Default.aspx" Font-Bold="False" CssClass="mylogo">Mail.ru Checker</asp:HyperLink></h1>
        </div>
        <div id="mainPanel" runat="server" class="span8 well">
            <div class="control-group">
                <div class="controls">
                    <div class="input-prepend input-append">
                        <span class="add-on"><i class="icon-globe"></i></span>
                        <asp:TextBox ID="saite" runat="server" placeholder="moysaite.ru"></asp:TextBox>
                        <asp:Button runat="server" ID="Ready" Text="Старт" OnClick="CreateOrder___" CssClass="btn btn-primary" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="saite" CssClass="alert alert-error" Display="Dynamic" 
                            ErrorMessage="Поле должно быть заполнено"></asp:RequiredFieldValidator>
                    </div>
                </div>
            </div>
            <div class="control-group">
                <div class="controls">
                    <div class="input-prepend input-append">
                        <span class="add-on"><i class="icon-search"></i></span>
                        <asp:TextBox ID="advtxt" runat="server" placeholder="купить книги" ValidationGroup="valAdv"></asp:TextBox>
                        <asp:Button ID="Button1" runat="server" Text="Добавить" OnClick="Button1_Click" CssClass="btn"
                            ValidationGroup="valAdv" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="advtxt"
                            CssClass="alert alert-error" Display="Dynamic" ErrorMessage="Поле должно быть заполнено"
                            ValidationGroup="valAdv"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:ListBox ID="advertslist" runat="server" Height="187px" Width="223px" AutoPostBack="True"
                            OnSelectedIndexChanged="advertslist_SelectedIndexChanged"></asp:ListBox>
                        <asp:CustomValidator ID="CustomValidator1" runat="server" 
                            ControlToValidate="advertslist" CssClass="alert alert-error" Display="Dynamic" 
                            ErrorMessage="должен быть хотябы один запрос"></asp:CustomValidator>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <asp:HyperLink ID="ResaultlLink" runat="server" Visible="False" Font-Bold="False" Target="_blank"
                    CssClass="btn btn-info">[ResaultLink]</asp:HyperLink>
            </div>
        </div>
        <div id="resultPanel" runat="server" class="span8 well" visible="false"> 
            <div id="showMessage" runat="server" class="alert alert-block" visible="false">
              <h4 class="alert-heading">Warning!</h4>
              Ваш результат ещё не обработан...
            </div> 
            <asp:HyperLink ID="TryResaultLink" runat="server" Visible="False" Font-Bold="False" CssClass="btn btn-info">[TryResaulLink]</asp:HyperLink>
                <asp:Table ID="TableResault" runat="server" CssClass="table table-striped" Visible="false">
                    <asp:TableRow ID="TableRow1" runat="server">
                        <asp:TableCell ID="TableCell1" runat="server" Font-Bold="True">Запрос</asp:TableCell>
                        <asp:TableCell ID="TableCell2" runat="server" Font-Bold="True">Позиция</asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
        </div>
    </div>

    </form>
</body>
</html>
